package com.ruoyi.project.outpatient.controller;


import com.ruoyi.project.outpatient.domain.Jiheduixiang;
import com.ruoyi.project.outpatient.domain.ceshi;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;


@RestController
@RequestMapping("/outpatient/newvisit")
public class DrugsOtcController {
    //就诊完成
    @PostMapping("/addjiuzhen")
    public void ceshi(@RequestBody Jiheduixiang jiheduixiang){
        for (ceshi ceshi1 : jiheduixiang.getQuery()) {
            System.out.println(ceshi1);
        }
        System.out.println(jiheduixiang);
    }
    @PostMapping("addjiuzhen1")
    public void ceshitow(@RequestBody List<ceshi> list,@RequestBody String sss){
        list.forEach(System.out::println);
        System.out.println(sss);
    }
    @PostMapping("addjiuzhen2")
    public void ceshithree( List<ceshi> list,String sss){
        list.forEach(System.out::println);
        System.out.println(sss);
    }
}
